import App from './App'
import '@/mock/homeMock.js'
import store from './store'

import Vue from 'vue'
import './uni.promisify.adaptor'

import base from '@/utils/base.js'
import request from '@/utils/request.js'
// 方法1 注册到 vue原型上
Vue.prototype.$request = request
Vue.prototype.$base = base
// 方法2 注册到 uni对象上
uni.$request = request
uni.$base = base

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()